package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 用户积分明细
 */
@Getter
@Setter
@Document("user_points_detail")
public class UserPointsDetail extends EntityBase {
    @Indexed
    private String userId;

    private Integer points;
    /**
     * 消耗类型,add:累加积分,sub:消耗积分
     */
    private String action;
    /**
     * 业务类型,perfect_info:完善用户信息，invite:邀请,ad:看广告,sign-up:签到,share-mini:分享小程序 ,ca-receive-digit:电子证书领取,
     * ca-receive-paper:纸质证书领取
     */
    private String bizType;
    /**
     * 日期
     */
    private Date optDate;
    /**
     * 业务描述
     */
    private String bizDesc;
    /**
     * 备注
     */
    private String comments;

    private String appId;

    private String platform;

}
